package net.neptech.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.neptech.model.dto.InstanceDto;
import net.neptech.model.dto.InstanceParamDto;
import net.neptech.model.dto.PageResultDto;
import net.neptech.model.dto.TaskDto;
import net.neptech.model.vo.DataQueryVO;
import net.neptech.model.vo.InstanceRecordVO;

import java.util.List;

public interface InstanceService {
    String startInstance(InstanceParamDto instanceParamDto);

    PageResultDto<InstanceDto> queryMineDoneWorkflowInstance(DataQueryVO pageVO);

    void workflowEndEvent(InstanceParamDto instanceParamDto);

    Page queryList(DataQueryVO pageDto);

    InstanceRecordVO queryDetailByWorkflowInstanceId(String workflowInstanceId);

    List<TaskDto> queryTaskListInProgress(String instanceId);
}
